package test_achieve.courierapp;

import constant.Pm;
import cucumber.api.java.en.Given;
import test_achieve.courierapp.scenes.HttpCourierMain;
import test_achieve.web.scenes.OneToOne;

/**
 * Created by chenkuo on 2017/8/17.
 */
public class CommCourier {
    @Given("^w已经下了一个及时单并完成"+ Pm.p12)
    public void wCreatOrderFinish(String CouNumbuter,String username,String city, String sendAdress, String sendName, String sendMobile, String receiveAddress, String receiveName, String receiveMobile, String weight, String goodsName, String remark) throws Throwable {
        OneToOne oneToOne = new OneToOne();
        oneToOne.w用户下了一个一取一投及时单(username, city, sendAdress, sendName, sendMobile, receiveAddress, receiveName, receiveMobile, weight, goodsName, remark);
        HttpCourierMain httpCourierMain = new HttpCourierMain();
        httpCourierMain.p闪送员抢单并完成订单(CouNumbuter);
    }

    @Given("^w已经下了一个及时单并完成"+ Pm.p6)
    public void wCreatOrderFinish(String CouNumbuter,String username, String sendAdress, String receiveAddress, String goodsName, String remark) throws Throwable {
        wCreatOrderFinish( CouNumbuter, username, null,  sendAdress,  null,  null,  receiveAddress,  null,  null,  null,  goodsName,  remark);
    }
}
